import request from "@/utils/request";

// 查询科技成果管理列表
export function listAchievement(query) {
  return request({
    url: "/kjy/achievement/list",
    method: "get",
    params: query,
  });
}

// 查询科技成果管理详细
export function getAchievement(id) {
  return request({
    url: "/kjy/achievement/" + id,
    method: "get",
  });
}

// 新增科技成果管理
export function addAchievement(data) {
  return request({
    url: "/kjy/achievement",
    method: "post",
    data: data,
  });
}

// 修改科技成果管理
export function updateAchievement(data) {
  return request({
    url: "/kjy/achievement",
    method: "put",
    data: data,
  });
}

// 删除科技成果管理
export function delAchievement(id) {
  return request({
    url: "/kjy/achievement/" + id,
    method: "delete",
  });
}
